package com.wn.framework.di

import com.wn.framework.toast.TipsToast
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

/**
 * @Author: wn
 * @Date: 2024/7/12 16:56
 * @Description: hilt 方式  提供 TipsToast 实例(单利模式)
 */
@Module
@InstallIn(SingletonComponent::class)
object ToastModule {
  // 提供 TipsToast 实例
  @Singleton
  @Provides
  fun provideTipsToast(): TipsToast = TipsToast.getInstance()
}